﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using ARR.Entities.Gateways;

namespace ARR.Entities
{
    [DataContract]
    public class TopSalesCategory : EntityBase
    {
        [DataMember]
        TopSalesCategoryRow row;

        public TopSalesCategory(TopSalesCategoryRow row)
        {
            this.row = row;
        }

        public TopSalesCategory()
        {
            row = new TopSalesCategoryRow();
        }
        
        [DataMember]
        public string Category 
        { 
            get { return row.Category; }
            set { row.Category = value; }
        }

        [DataMember]
        public decimal Total 
        {
            get { return row.Total; }
            set { row.Total = value; }
        }

        [DataMember]
        public DateTime? Month
        {
            get;
            set;
        }

        public override void Initialize()
        {
            row = new TopSalesCategoryRow();
        }
    }
}
